import { Injectable } from '@nestjs/common';
const dayjs = require('dayjs');
@Injectable()
export class FormatService {

  dateFormate(date: Date, format: string) {
      const result = dayjs(date).format(format);
      return result;
  }


}
